package com.gdpu.project.vo;

import java.util.Date;
import java.util.HashSet;

/**
 * CgThesis entity. @author MyEclipse Persistence Tools
 */

public class CgThesis implements java.io.Serializable {

	// Fields
	private final float REWORD_PER_POINT=4.6f;
	private Integer id;
	private String thesisId;
	/**
	 * 作者名字
	 */
	private String teacherName;
	/**
	 * 论文名字
	 */
	private String thesisTitle;
	/**
	 * 期刊名
	 */
	private String kanWu;
	/**
	 * 发表时间
	 */
	private Date publishDate;
	/**
	 * 四大索引
	 */
	private String suoyin;
	/**
	 * 是否为核心期刊（等级）
	 */
	private String grade;
	/**
	 * 科研分
	 */
	private float keYanFen;
	/**
	 * 科研分酬金
	 */
	private float keYanFenReword;
	/**
	 * 奖励酬金
	 */
	private float reword;
	/**
	 * 备注
	 */
	private String comment;
	private String juanHao;


	private String layout;
	private String layoutCost;
	private String pageRange;
	private String projectOrigin;
	private String publishRange;
	private String qiHao;
	private String schoolSign;
	private String teacherId;//教师id
	private String thesisEnTitle;
	private String thesisType;
	private String thesisZy;
	private String xueKe;
	private String yiWen;
	private String ziShu;
	private HashSet<Teacher> teacherList=new HashSet<Teacher>();
	/** default constructor */
	public CgThesis() {
	}
	/** full constructor */
	
	public CgThesis(String thesisId, String teacherName, String thesisTitle,
			String kanWu, Date publishDate, String suoyin, String grade,
			float keYanFen, float keYanFenReword, float reword,
			String comment, String juanHao, String layout, String layoutCost,
			String pageRange, String projectOrigin, String publishRange,
			String qiHao, String schoolSign, String teacherId,
			String thesisEnTitle, String thesisType, String thesisZy,
			String xueKe, String yiWen, String ziShu,
			HashSet<Teacher> teacherList) {
		
		this.thesisId = thesisId;
		this.teacherName = teacherName;
		this.thesisTitle = thesisTitle;
		this.kanWu = kanWu;
		this.publishDate = publishDate;
		this.suoyin = suoyin;
		this.grade = grade;
		this.keYanFen = keYanFen;
		this.keYanFenReword = keYanFenReword;
		this.reword = reword;
		this.comment = comment;
		this.juanHao = juanHao;
		this.layout = layout;
		this.layoutCost = layoutCost;
		this.pageRange = pageRange;
		this.projectOrigin = projectOrigin;
		this.publishRange = publishRange;
		this.qiHao = qiHao;
		this.schoolSign = schoolSign;
		this.teacherId = teacherId;
		this.thesisEnTitle = thesisEnTitle;
		this.thesisType = thesisType;
		this.thesisZy = thesisZy;
		this.xueKe = xueKe;
		this.yiWen = yiWen;
		this.ziShu = ziShu;
		this.teacherList = teacherList;
	}
	public String getComment() {
		return this.comment;
	}
	public String getGrade() {
		return this.grade;
	}
	public Integer getId() {
		return this.id;
	}
	public String getJuanHao() {
		return this.juanHao;
	}

	// Constructors

	public String getKanWu() {
		return this.kanWu;
	}

	public float getKeYanFen() {
		return this.keYanFen;
	}

	public String getLayout() {
		return this.layout;
	}

	public String getLayoutCost() {
		return layoutCost;
	}

	// Property accessors

	public String getPageRange() {
		return this.pageRange;
	}

	public String getProjectOrigin() {
		return this.projectOrigin;
	}

	public Date getPublishDate() {
		return this.publishDate;
	}

	public String getPublishRange() {
		return this.publishRange;
	}

	public String getQiHao() {
		return this.qiHao;
	}

	public String getSchoolSign() {
		return this.schoolSign;
	}

	public String getSuoyin() {
		return suoyin;
	}

	public String getTeacherId() {
		return this.teacherId;
	}

	public HashSet<Teacher> getTeacherList() {
		return teacherList;
	}

	public String getTeacherName() {
		return teacherName;
	}

	public String getThesisEnTitle() {
		return this.thesisEnTitle;
	}

	public String getThesisId() {
		return this.thesisId;
	}

	public String getThesisTitle() {
		return this.thesisTitle;
	}

	public String getThesisType() {
		return this.thesisType;
	}

	public String getThesisZy() {
		return this.thesisZy;
	}

	public String getXueKe() {
		return this.xueKe;
	}

	public String getYiWen() {
		return this.yiWen;
	}

	public String getZiShu() {
		return this.ziShu;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setJuanHao(String juanHao) {
		this.juanHao = juanHao;
	}

	public void setKanWu(String kanWu) {
		this.kanWu = kanWu;
	}

	public void setKeYanFen(float keYanFen) {
		this.keYanFen = keYanFen;
		
			this.setKeYanFenReword(keYanFen*REWORD_PER_POINT);
	}

	public void setLayout(String layout) {
		this.layout = layout;
	}

	public void setLayoutCost(String layoutCost) {
		this.layoutCost = layoutCost;
	}

	public void setPageRange(String pageRange) {
		this.pageRange = pageRange;
	}

	public void setProjectOrigin(String projectOrigin) {
		this.projectOrigin = projectOrigin;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	public void setPublishRange(String publishRange) {
		this.publishRange = publishRange;
	}

	public void setQiHao(String qiHao) {
		this.qiHao = qiHao;
	}

	public void setSchoolSign(String schoolSign) {
		this.schoolSign = schoolSign;
	}

	public void setSuoyin(String suoyin) {
		this.suoyin = suoyin;
		if("核心".equals(this.grade)){
			this.setKeYanFen(100);
		}else{
			this.setKeYanFen(50);
		}
		if("SCI".equals(this.suoyin)||"EI".equals(this.suoyin)||"SSCI".equals(this.suoyin))
			this.setKeYanFen(500);
		if("ISTP".equals(this.suoyin)||"ISR".equals(this.suoyin)||"ISSHP".equals(this.suoyin))
			this.setKeYanFen(300);
	}

	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}

	public void setTeacherList(HashSet<Teacher> teacherList) {
		this.teacherList = teacherList;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	public void setThesisEnTitle(String thesisEnTitle) {
		this.thesisEnTitle = thesisEnTitle;
	}

	public void setThesisId(String thesisId) {
		this.thesisId = thesisId;
	}

	public void setThesisTitle(String thesisTitle) {
		this.thesisTitle = thesisTitle;
	}

	public void setThesisType(String thesisType) {
		this.thesisType = thesisType;
	}

	public void setThesisZy(String thesisZy) {
		this.thesisZy = thesisZy;
	}

	public void setXueKe(String xueKe) {
		this.xueKe = xueKe;
	}

	public void setYiWen(String yiWen) {
		this.yiWen = yiWen;
	}

	public void setZiShu(String ziShu) {
		this.ziShu = ziShu;
	}
	public void setKeYanFenReword(float keYanFenReword) {
		
		this.keYanFenReword = keYanFenReword;
	}
	public float getKeYanFenReword() {
		return keYanFenReword;
	}
	public void setReword(float reword) {
		this.reword = reword;
	}
	public float getReword() {
		return reword;
	}

}